package chapter10.p;

public class P15 {
	public A a() {
		return new Ea(5) {

		};
	}
}
class A {
	private int i;
	public A (int i) {
		this.i = i;
	}
	public int value() {
		return i;
	}
}
class Ea extends A {

	public Ea(int i) {
		super(i);
	}

}
class B {
	public A getA() {
		return new A(1);
	}
}
